<ui:composition xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich">
      
   	<div>
   		<div class="wizard-steps">
			<div class="completed-step"><a href="#"><span>1</span> Vehicle Info</a></div>
			<div class="completed-step"><a href="#"><span>2</span> Vehicle Options</a></div>
			<div class="active-step"><a href="#"><span>3</span> Upload Images</a></div>			
		</div>
        <h:panelGrid width="100%">
    		<f:facet name="header">
               <h3>Options</h3> 
            </f:facet>			    		
  				<rich:dataGrid columns="4" elements="12" value="#{invCtrl.car.distinctGroups}" var="group" style="width: 100%;">
  					<h:panelGrid width="100%" headerClass="subHeader nowrap">
	    			<f:facet name="header">
		                #{group.name}
		            </f:facet>			    		
    				<rich:list value="#{invCtrl.car.features}" var="feat" styleClass="list-1">
    					<h:outputText value="#{feat.featureValue}" rendered="#{group.name == feat.featureGroup.name}" styleClass="text-1"/>								        
				    </rich:list>
				 </h:panelGrid>   		    			
    		</rich:dataGrid>		    			    	
    	</h:panelGrid>
	    <div class="navPanel">
	        <a4j:commandButton value="&lt;&lt;Previous" styleClass="button1 alignright" immediate="true">
	            <rich:toggleControl targetItem="@prev" event="click" />
	        </a4j:commandButton>
	        <a4j:commandButton styleClass="fright button1" value="Next &gt;&gt;" rendered="#{invCtrl.car.persistent}">
	            <rich:toggleControl targetItem="@next" event="click"/>
	        </a4j:commandButton>
	        <a4j:commandButton styleClass="fright button1" value="Submit" action="#{invCtrl.submitInventory}" render="@all">
	        </a4j:commandButton>
	    </div>
    </div>
</ui:composition>